home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 376-400 / disk_392 / btntape / tape.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  32 lines

  1. /* BTNtape include file, version 1.0 */
  2.  
  3. /* Operations supported by TapeIO */
  4. #define TSENSE  0    /* issue sense */
  5. #define TREAD   1    /* read blocks */
  6. #define TWRITE  2    /* write blocks */
  7. #define TREWIND 3    /* rewind (rezero) tape */
  8. #define RAWCMD  4    /* send user scsi command to tape */
  9. #define RDCAP   5    /* read capacity */
  10. #define TFINISH 6    /* wait for last operation to finish */
  11.  
  12. /* these control how fast TapeIO returns to the caller */
  13. #define CTLWAIT 0    /* return when operation is done */
  14. #define CTLIMM  1    /* return immediately */
  15.  
  16. /* inline message print functions */
  17. #define MPR0(XYZ)           sprintf(dbb,XYZ);           MonPrint();
  18. #define MPR1(XYZ,V1)        sprintf(dbb,XYZ,V1);        MonPrint();
  19. #define MPR2(XYZ,V1,V2)     sprintf(dbb,XYZ,V1,V2);     MonPrint();
  20. #define MPR3(XYZ,V1,V2,V3)  sprintf(dbb,XYZ,V1,V2,V3);  MonPrint();
  21.  
  22. /* function prototypes */
  23. void _main(void);
  24. void   DoSense(long);
  25. void   FreeStuff(ULONG);
  26. ULONG  Nextnum(short);
  27. void   MonPrint(void);
  28. long   TapeIO(int,int,UBYTE);
  29. void   NewTape(void);
  30. void   returnpkt(struct DosPacket *, ULONG, ULONG);
  31. struct DosPacket *taskwait(void);
  32.